package main

import (
	"fmt"
	"math/rand"
	"time"
)

func main() {
	var count1, count2 int = 0, 1
	r10 := rand.New(rand.NewSource(time.Now().UnixMicro()))
	fmt.Println(r10.Intn(20))
	for i := 1; i < 20+1; i++ {
		b := r10.Intn(20)
		switch { //没有传入结果代表True and False
		case i&1 == 1:
			count1 = b + count1
		default:
			count2 = b * count2
		}

	}
	fmt.Println(count1, count2)
}
